﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sdm.exam.dataaccess
{
    public class ObjectParser
    {
        public static dataaccess.Exam ExamToExamDao(be.Exam exam)
        {
            dataaccess.Exam examDao = new Exam()
            {
                ClassRoomId = exam.ClassroomId,
                CourseId = exam.CourseId,
                TeacherId = exam.TeacherId,
                EducationId = 9
            };
            return examDao;
        }

        internal static List<be.Exam> ExamDaoToExam(IQueryable<Exam> q)
        {
            List<be.Exam> list = new List<be.Exam>();
            foreach(Exam exam in q)
            {
                new be.Exam(exam.CourseId, exam.TeacherId, exam.ClassRoomId, exam.EducationId);
            }
            return null;
        }
    }
}
